import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home/index.vue'
import Classify from '../views/Classify/index.vue'
import Login from '../views/Login/index.vue'
import Detail from '../views/Detail/index.vue'
import Esliu from '../views/Esliu/index.vue'
// import Echarts from '../views/Echarts/index.vue'

const routes = [
  {
    path: '/classify',
    name: 'classify',
    component: Classify,
  },
  {
    path: '/',
    name: 'home',
    component: Home,
  },
  {
    path: '/login',
    name: 'login',
    component: Login,
  },
  {
    path: '/detail',
    name: 'detail',
    component: Detail,
  },
  {
    path: '/esliu',
    name: 'esliu',
    component: Esliu,
  },
]
const router = createRouter({
  history: createWebHistory(),
  // base: process.env.BASE_URL,
  routes,
})
export default router
